package create;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-01-11
 * Time: 11:58
 */

//2.实现Runnable接口 匿名实现类
public class Demo4 {
    public static void main(String[] args) {
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("匿名实现Runnable实例");
            }
        });
        t.start();
    }
}
